//
//  PictureCollectionViewCell.m
//  Drawboard
//
//  Created by A-01 on 2020/6/28.
//  Copyright © 2020 Mac. All rights reserved.
//

#import "PictureCollectionViewCell.h"

@implementation PictureCollectionViewCell


-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        //设置控件
        [self setupUI];
    }
    
    return self;
}


- (void)setupUI{
    
    self.layer.cornerRadius = 20;
    self.layer.borderWidth = 1.5;
    self.layer.borderColor = [ZRBlackColor CGColor];
    self.layer.masksToBounds = YES;
    
    UIImageView * imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    imageView.backgroundColor = ZRWhiteColor;
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    self.imageView = imageView;
    
    [self.contentView addSubview:self.imageView];
}

@end
